﻿ /**
 * 子模块路由
 * Lc
 */

var router = function($urlRouterProvider, $stateProvider){

 	$stateProvider

    //待办列表
    .state('app.ceventList', {
        url: "/ceventList",
        views: {
            'main@' : {
                template : require('./views/ceventList.html'),
                controller : 'ceventList',
            }
        },
        resolve:{
            
        }
    })
    //完善企业信息
    .state('app.ccompleteInfo', {
        url: "/ccompleteInfo",
        views: {
            'main@' : {
                template : require('./views/ccompleteInfo.html'),
                controller : 'ccompleteInfo',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }
        }
    })
    
    .state('app.cviewPeople', {
        url: "/cviewPeople",
        views: {
            'main@' : {
                template : require('./views/cviewPeople.html'),
                controller : 'cviewPeople',
            }
        },
        resolve:{

        }
    })   
    .state('app.cviewnotice', {
        url: "/cviewnotice?type",
        views: {
            'main@' : {
                template : require('./views/cviewnotice.html'),
                controller : 'cviewnotice',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.cviewnoticelook', {
        url: "/cviewnoticelook",
        views: {
            'main@' : {
                template : require('./views/cviewnoticelook.html'),
                controller : 'cviewnoticelook',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.ccityApplyNoAudit', {
        url: "/ccityApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/ccityApplyNoAudit.html'),
                controller : 'ccityApplyNoAudit',
            }
        },
        resolve:{

        }
    })   
     .state('app.ccityApplyYesAudit', {
        url: "/ccityApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/ccityApplyYesAudit.html'),
                controller : 'ccityApplyYesAudit',
            }
        },
        resolve:{

        }
    })
     .state('app.ccityApplyThirdAudit', {
        url: "/ccityApplyThirdAudit",
        views: {
            'main@' : {
                template : require('./views/ccityApplyThirdAudit.html'),
                controller : 'ccityApplyThirdAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.ccityThirdApplyAuditInfo', {
        url: "/ccityThirdApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/ccityThirdApplyAuditInfo.html'),
                controller : 'ccityThirdApplyAuditInfo',
            }
        },
        resolve:{

        }
    })
    .state('app.ccityThirdApplyAuditInfoNo', {
        url: "/ccityThirdApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/ccityThirdApplyAuditInfoNo.html'),
                controller : 'ccityThirdApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    })
    .state('app.ccityThirdApplyNoAudit', {
        url: "/ccityThirdApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/ccityThirdApplyNoAudit.html'),
                controller : 'ccityThirdApplyNoAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.ccityThirdApplyYesAudit', {
        url: "/ccityThirdApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/ccityThirdApplyYesAudit.html'),
                controller : 'ccityThirdApplyYesAudit',
            }
        },
        resolve:{

        }
    })


    .state('app.caddviewlidex', {
        url: "/caddviewlidex",
        views: {
            'main@' : {
                template : require('./views/caddviewlidex.html'),
                controller : 'caddviewlidex',
            }
        },
        resolve:{

        }
    })
    .state('app.cviewalevelindex', {
        url: "/cviewalevelindex",
        views: {
            'main@' : {
                template : require('./views/cviewalevelindex.html'),
                controller : 'cviewalevelindex',
            }
        },
        resolve:{

        }
    })    
        .state('app.caddevaluatepeople', {
        url: "/caddevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/caddevaluatepeople.html'),
                controller : 'caddevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.ccountryApplyBase', {
        url: "/ccountryApplyBase",
        views: {
            'main@' : {
                template : require('./views/ccountryApplyBase.html'),
                controller : 'ccountryApplyBase',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.ccountryApplyAuditInfo', {
        url: "/ccountryApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/ccountryApplyAuditInfo.html'),
                controller : 'ccountryApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.ccountryApplyAuditInfoNo', {
        url: "/ccountryApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/ccountryApplyAuditInfoNo.html'),
                controller : 'ccountryApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.ccountryApplyNoAudit', {
        url: "/ccountryApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/ccountryApplyNoAudit.html'),
                controller : 'ccountryApplyNoAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.ccountryApplyYesAudit', {
        url: "/ccountryApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/ccountryApplyYesAudit.html'),
                controller : 'ccountryApplyYesAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.ccountryApplyAudit', {
        url: "/ccountryApplyAudit",
        views: {
            'main@' : {
                template : require('./views/ccountryApplyAudit.html'),
                controller : 'ccountryApplyAudit',
            }
        },
        resolve:{

        }
    }) 

  .state('app.ccityApplyAuditInfoNo', {
        url: "/ccityApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/ccityApplyAuditInfoNo.html'),
                controller : 'ccityApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.ccityApplyAuditInfo', {
        url: "/ccityApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/ccityApplyAuditInfo.html'),
                controller : 'ccityApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.ccityApplyFirstAudit', {
        url: "/ccityApplyFirstAudit",
        views: {
            'main@' : {
                template : require('./views/ccityApplyFirstAudit.html'),
                controller : 'ccityApplyFirstAudit',
            }
        },
        resolve:{

        }
    }) 

   .state('app.cviewevaluatepeople', {
        url: "/cviewevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/cviewevaluatepeople.html'),
                controller : 'cviewevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    //企业审核
   .state('app.creview_company', {
        url: "/creview_company",
        views: {
            'main@' : {
                template : require('./views/creview_company.html'),
                controller : 'creview_company',
            }
        },
        resolve:{

        }
    })
    //待办列表
    .state('app.calevelIndexCategory', {
        url: "/calevelIndexCategory?type",
        views: {
            'main@' : {
                template : require('./views/calevelIndexCategory.html'),
                controller : 'calevelIndexCategory',
            }
        },
        resolve:{
            
        }
    })

    .state('app.caddCategory', {
        url: "/caddCategory",
        views: {
            'main@' : {
                template : require('./views/caddCategory.html'),
                controller : 'caddCategory',
            }
        },
        resolve:{

        }
    })
    //待审核景区列表
    .state('app.cunaudited_viewlist', {
        url: "/cunaudited_viewlist",
        views: {
            'main@' : {
                template : require('./views/cunaudited_viewlist.html'),
                controller : 'cunaudited_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.cpassed_viewlist', {
        url: "/cpassed_viewlist",
        views: {
            'main@' : {
                template : require('./views/cpassed_viewlist.html'),
                controller : 'cpassed_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.crejected_viewlist', {
        url: "/crejected_viewlist",
        views: {
            'main@' : {
                template : require('./views/crejected_viewlist.html'),
                controller : 'crejected_viewlist',
            }
        },
        resolve:{

        }
    })
    //景区项目列表
    .state('app.cviewproject_list', {
        url: "/cviewproject_list",
        views: {
            'main@' : {
                template : require('./views/cviewproject_list.html'),
                controller : 'cviewproject_list',
            }
        },
        resolve:{

        }
    })
    //评定员打分列表
    .state('app.cmark_list', {
        url: "/cmark_list",
        views: {
            'main@' : {
                template : require('./views/cmark_list.html'),
                controller : 'cmark_list',
            }
        },
        resolve:{

        }
    })
    
};

module.exports = router;